<!--{eval $_TPL['titles'] = array('新同居时代 - 我的房子');}-->
<!--{template header}-->
<!--{template house/view/menu}-->
<div class="s_clear">
	<div style="background-color: #FFFFFF; line-height: 25px;">
		<div style="border: 5px solid rgb(229, 235, 243); padding: 25px; background-repeat: no-repeat;">
			<table width="100%" cellspacing="1" cellpadding="0" border="0">
			 <tbody>
				<tr>
					<td width="75%" valign="top">
					<div class="notice" style="margin:0 0 10px 0px;">这是 <a href="space.php?uid={$user['uid']}" target="_blank">{$_SN[$user['uid']]} <img src="house/view/img/home.gif" /></a> 拥有的房产</div>
					<!--{if $data}-->
					<!--{loop $data $v}-->
						<div>
						<table width="100%" cellspacing="1" cellpadding="0" border="0">
							<tbody>
								<tr>
									<td width="42%" valign="middle" align="left">
										<img class=show border="0" src="house/view/house/{$v['cid']}.jpg"/>
									</td>
									<td width="58%" style="line-height:1em;padding-left: 10px;padding-top: 10px;" valign="top">
										<b><font color=green>{$v['name']}</font></b><!--{if $uid == $v['uid']}--> (<a href="#" onclick="return house.changeName($v['id']);">改房名</a>)<!--{/if}--><br/><br/>
										<!--{if $uid == $v['uid']}-->	<a href="house.php?ac=buyhouse&op=change&id={$v['id']}"><img src="house/view/img/old_new.jpg"/></a><br/><br/><!--{/if}-->
										<b>房东：</b><a href="space.php?uid={$v['uid']}" target="_blank">{$_SN[$v['uid']]} <img src="house/view/img/home.gif" /></a><br/><br/>
										<b>物业：</b>{$house_db[$v['cid']]['goods_money']}金币 / 天 <br /><br />
										<b>租金：</b>{$v['price']}金币 / 天 <!--{if $uid == $v['uid']}-->(<a href="#" onclick="return house.changePrice($v['id']);">改租金</a>)<!--{/if}--><br /><br />
										<b>类型：</b>{$house_db[$v['cid']]['title']}<br/><br/>
										<!--{if $v['status'] == 1}-->
										<b>当前居住：</b>无人居住 <br/><br/>
										<!--{if $uid == $v['uid']}--><a href="#" onclick="return house.friend_renting($v['id']);"><img border="0" src="house/view/img/join_friend.jpg"/></a><br/><br/><!--{/if}-->
										<a href="#" onclick="return house.moveIn($v['id']);"><img border="0" src="house/view/img/in.jpg"/></a>
										<!--{if $uid == $v['uid']}--><a href="#" onclick="return house.sell($v['id']);"><img border="0" src="house/view/img/house_sell.jpg"/></a><!--{/if}-->
										<!--{elseif $v['status'] == 2}-->
										<b>当前居住：</b>主人居住(<a href="house.php?ac=index&uid={$v['uid']}">{$_SN[$v['uid']]}</a>) <br/><br/>
										<!--{elseif $v['status'] == 3}-->
										<b>当前居住：</b>对外出租 <br/><br/>
										<a href="#" onclick="return house.moveIn($v['id']);"><img border="0" src="house/view/img/in.jpg"/></a>
										<!--{if $uid == $v['uid']}--><a href="#" onclick="return house.sell($v['id']);"><img border="0" src="house/view/img/house_sell.jpg"/></a><!--{/if}-->
										<!--{else}-->
										<b>当前居住：</b><a href="house.php?ac=index&uid={$v['sent_uid']}">{$_SN[$v['sent_uid']]}</a> (房东 <a href="house.php?ac=index&uid={$v['uid']}">{$_SN[$v['uid']]}</a>)<br/><br/>
										<!--{if $uid == $v['uid']}--><a href="#" onclick="return house.get_back($v['id']);"><img border="0" src="house/view/img/get_house_back.jpg"/></a> <a href="#" onclick="return house.get_goods($v['id']);"><img border="0" src="house/view/img/get_house_goods.jpg"/></a><!--{/if}-->
										<!--{/if}-->
									</td>
								</tr>
							</tbody>
						</table>
						</div>
					<!--{/loop}-->
					<!--{else}-->
						<table width="100%" cellspacing="1" cellpadding="0" border="0">
							<tbody>
								<tr>
									<td><div class="notice">还没有房子？去<a href="house.php?ac=buyhouse">房屋市场</a>吧，那里的的房子又便宜有漂亮！</div></td>
								</tr>
							</tbody>
						</table>
					<!--{/if}-->
					</td>
					<td width="25%" valign="top">
						<!--{template house/view/load}-->
					</td>
				</tr>
			 </tbody>
			</table>
		</div>
	</div>
</div>
<!--{template footer}-->